package ooday02;

import ooday03.Swim;

public class Dog extends Animal implements Swim {
    public Dog(String name, int age, String color) {
        super(name, age, color);
    }

    void eat() {
        System.out.println( name+"吃骨头");
    }

    void special() {
        System.out.println(name + "看门口");
    }


    @Override
    public void swim() {
        System.out.println(name+"游水");
    }
}


